package com.ceair.flight.refund.service.uatp.impl;

import com.ceair.flight.refund.dto.external.PayDto;
import com.ceair.flight.refund.dto.external.PayProductDto;
import com.ceair.flight.refund.location.dao.IPayDao;
import com.ceair.flight.refund.location.model.PayDO;
import com.ceair.flight.refund.service.impl.BaseServiceImpl;
import com.ceair.flight.refund.service.uatp.IPayQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayQueryServiceImpl extends BaseServiceImpl<PayDto, PayDO> implements IPayQueryService {

    @Autowired
    private IPayDao payDao;

    @Override
    public List<PayDto> getPayDOAndPayProductDOList(PayProductDto PayProductDto) {
        List<PayDO> payDOList = payDao.getPayDOAndPayProductDOList(PayProductDto);
        return (List<PayDto>) trans2Dto(payDOList, PayDto.class);
    }

}
